package com.mySampleApplication.client.CodeRuleAtter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mySampleApplication.client.codeRule.CodeRuleDto;

import java.util.Map;

@RemoteServiceRelativePath("CodeRuleAtterService")
public interface CodeRuleAtterService extends RemoteService {
    String getTotal(Map<String, String> map);

    CodeRuleAtterDto getSelect(Map<String, String> map, Map<String, String> mapPage);

    CodeRuleAtterDto getSelectVs(Map<String, String> map, Map<String, String> mapPage);

    String setInsert(Map<String, String> map);

    String setUpdate(Map<String, String> map);


    String setDelete(int[] ids);
    String deleteByCoderuleId(String coderuleId);


    public static class App {
        private static CodeRuleAtterServiceAsync ourInstance = GWT.create(CodeRuleAtterService.class);

        public static synchronized CodeRuleAtterServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
